import {NgModule} from '@angular/core';
import {Routes, RouterModule} from '@angular/router';

//  子component
import {WithdrawalsListComponent} from './withdrawals-list/withdrawals-list.component';
import {WithdrawalsViewComponent} from './withdrawals-view/withdrawals-view.component'

const routes: Routes = [
    {
        path: '',
        children: [
            {
                path: 'index',
                component: WithdrawalsListComponent,
                data: {
                    title: '提现管理'
                }
            },
            {
                path: 'index/view/:id/:state',
                component: WithdrawalsViewComponent,
                data: {
                    title: '提现查看'
                }
            },
            {
                path: 'index/audit/:id/:state',
                component: WithdrawalsViewComponent,
                data: {
                    title: '提现审核'
                }
            },
        ]
    }
];

@NgModule({
    imports: [RouterModule.forChild(routes)],
    exports: [RouterModule]
})
export class WithdrawalsRoutingModule {
}
